<template>
	<view>
		<navigator url="../modify/modifyPhone">
			<view class="modify_item">
				<text>修改手机号：</text>
				<view>{{phone}}<u-icon name="arrow-right" color="#acacac"></u-icon></view>
			</view>
		</navigator>
		<navigator url="../modify/changePassword">
			<view class="modify_item">
				<text>修改密码：</text>
				<view> xxxxxx<u-icon name="arrow-right" color="#acacac"></u-icon></view>
			</view>
		</navigator>
		
		<view class="logout" @click="btnlogout">
			退出登录
		</view>
		<u-toast ref="uToast"  />
	</view>
</template>

<script>
	export default {
		data() {
			return {
				phone:uni.getStorageSync('_PHONE_')
			};
		},
		methods:{
			btnlogout(){
				const _this = this;
				uni.removeStorage({
				    key: 'token',
				    success: function (res) {
				        _this.$refs.uToast.show({
				        	title: '成功退出',
				        });
						setTimeout(() => {
							uni.switchTab({
								url:'../index/index'
							})
						},1500)
				    }
				});
			},
			isIndex(){
				
			}
		}
	}
</script>

<style lang="scss" scoped>
.modify_item{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 30rpx 20rpx;
	font-size: 32rpx;
	border-bottom: 1rpx solid #EEEEEE;
}
.logout{
	width: 80%;
		padding: 20rpx;
		background: #05B2B5;
		color: #fff;
		font-size: 30rpx;
		margin: 0 auto;
		text-align: center;
		border-radius: 50rpx;
		margin-top: 50rpx;
}
</style>
